package com.zxc.common.dto;

import com.fasterxml.jackson.annotation.JsonIgnore;
import lombok.Data;

import javax.validation.constraints.Email;
import javax.validation.constraints.NotBlank;
import java.time.LocalDateTime;

@Data
public class RegisterDto {
    @JsonIgnore
    private Integer id;
    @NotBlank(message = "用户名不能为空!")
    private String userName;
    @NotBlank(message = "手机号不能为空!")
    private String phoneNumber;
    @NotBlank(message = "密码不能为空!")
    private String pass;
    @NotBlank(message = "确认密码不能为空!")
    private String checkPass;
    //用户头像
    private String avatar;
    //用户邮箱
    private String email;
    //密码
    private String password;
    //状态
    private Integer status;
    //创建时间
    private LocalDateTime created;
    //上次登录时间
    private LocalDateTime lastLogin;
}
